package com.cy.cuiyang_admin.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author admin
 */
@Component
public class AttendCalcJob {
    private static final Logger LOGGER = LoggerFactory.getLogger(AttendCalcJob.class);

    /**
     * 每天汇总考勤数据统计
     *
     * @return
     */
    @XxlJob("everyDaySyncAttend")
    public ReturnT<String> everyDaySyncAttend(String params) {
        LOGGER.info("everyDaySyncAttend is start.....,{}", params);

        return new ReturnT<>(ReturnT.SUCCESS_CODE, "处理成功");
    }


    /**
     * 每月汇总考勤数据统计
     *
     * @return
     */
    @XxlJob("everyMonthSyncAttend")
    public ReturnT<String> everyMonthSyncAttend(String params) {
        LOGGER.info("everyMonthSyncAttend is start.....");

        return new ReturnT<>(ReturnT.SUCCESS_CODE, "处理成功");
    }

}

